package com.erpx.api.param;


import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
public class StockOutOrderDetailVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @JsonProperty("sku_id")
    private Long skuId;

    @JsonProperty("sku_no")
    private String skuNo;

    @JsonProperty("stock_type")
    private Integer stockType;

    @JsonProperty("num")
    private BigDecimal num;

    @JsonProperty("plan_num")
    private BigDecimal planNum;

    @JsonProperty("stockout_price")
    private BigDecimal stockoutPrice;

    @JsonProperty("stockout_amount")
    private BigDecimal stockoutAmount;

    @JsonProperty("batch_id")
    private Long batchId;

    @JsonProperty("batch_no")
    private String batchNo;

    @JsonProperty("position_id")
    private Long positionId;

    @JsonProperty("position_no")
    private String positionNo;

    // 冗余字段，当前系统中货位存在两个命名，做兼容
    @JsonProperty("location_id")
    private Long locationId;

    @JsonProperty("location_name")
    private String locationName;

//    @JsonProperty("expire_date")
//    private LocalDateTime expireDate;
//
//    @JsonProperty("production_date")
//    private LocalDateTime productionDate;

    @JsonProperty("remark")
    private String remark;

    @JsonProperty("sn_num")
    private Integer snNum;

    @JsonProperty("sku_sn")
    private List<String> skuSn;


    public StockOutOrderDetailVO(String skuNo, Integer stockType, BigDecimal num, BigDecimal planNum, BigDecimal stockoutPrice, BigDecimal stockoutAmount, String remark, String batchNo, String positionNo) {
        this.num = num;
        this.planNum = planNum;
        this.stockoutPrice = stockoutPrice;
        this.stockoutAmount = stockoutAmount;
        this.skuNo = skuNo;
        this.stockType = stockType;
        this.remark = remark;
        this.batchNo = batchNo;
        this.positionNo = positionNo;
    }
}

